package com.abigdreamer.swing.chart;

import java.awt.Color;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.geom.Area;

public class Pie3D extends Chart3DBean
{
  private static final long serialVersionUID = -7777404623107653308L;
  private double startAngle;
  private double extentAngle;
  private double percent;
  private Number rawData;

  public Pie3D(String name, double startAngle, double extentAngle)
  {
    this.name = name;
    this.startAngle = startAngle;
    this.extentAngle = extentAngle;
    this.textColor = Color.BLACK;
    this.legendBounds = new Rectangle();
    this.textPosition = new Point();
    setArea(new Area());
  }

  public Color getPieColor()
  {
    return super.getColor();
  }

  public void setPieColor(Color pieColor)
  {
    super.setColor(pieColor);
  }

  public Number getRawData()
  {
    return this.rawData;
  }

  public void setRawData(Number rawData)
  {
    this.rawData = rawData;
  }

  public double getPercent()
  {
    return this.percent;
  }

  public void setPercent(double percent)
  {
    this.percent = percent;
  }

  public double getStartAngle()
  {
    return this.startAngle;
  }

  public double getExtentAngle()
  {
    return this.extentAngle;
  }
}
